package com.koron.order.experiment.feign;

import com.koron.bean.base.Response;
import com.koron.bean.standard.deviceClasssify.dto.BaseTypeDTO;
import com.koron.bean.standard.jobStock.experiment.dto.ExperimentDTO;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName ExperimentStandController
 * @description
 * @Author zhouj
 * @Date 2021/9/24 16:29
 */
@FeignClient(value = "eam-service-standard", fallbackFactory = FeignFallbackFactory.class)
public interface ExperimentStandFeignService {


    @GetMapping("/experiment")
    @ApiOperation(value = "根据id查询")
    Response<ExperimentDTO> select(@RequestParam("id") String id);

    @GetMapping("/deviceClassify/detail")
    @ApiOperation(value = "查询一条设备分类基本数据，包括设备分类信息、基本参数和技术参数")
    Response<BaseTypeDTO> selectDetailOne(@RequestParam("id") String id);


}
